package anatex.domain;

import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;
import org.springframework.roo.addon.entity.RooEntity;
import anatex.domain.CustomLocale;
import javax.persistence.ManyToOne;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@RooJavaBean
@RooToString
@RooEntity(finders = { "findStopwordsByCustomLocale" })
public class Stopword {

    @ManyToOne
    private CustomLocale customLocale;

    @NotNull
    @Size(max = 128)
    private String word;
}
